/*
责任链模式
*/
package chain

type HandlerChain struct {
	Next Handler
}

type Handler interface {
	SetNext(next Handler)
	Do(context string)
}

func (h *HandlerChain) SetNext(next Handler) {
	h.Next = next
}

func (h *HandlerChain) Do(context string) {

}
